////////////////////////////////////////////////////////////////////////////////
// Copyright 2006 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   
// AUTHOR           :    
// DATE CREATE      :   
// DESCRIPTION      :   
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2006/04/27   Ric Yik         1.0                 BugZilla #5534
// 2006/04/26   Ric Yik         1.0                 BugZilla #5534
// 2006/05/16   Ric Yik         1.0                 BugZilla #5534
//
////////////////////////////////////////////////////////////////////////////////

package com.erp.framework.controller.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.beanutils.PropertyUtils;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;

public class SimpleMaintStyleForm extends SimpleCoreForm {
    public SimpleMaintStyleForm() {
    }

    protected String editType = "";
    protected Object oldValues;
    protected String folderIdx = "0";
    protected boolean[] accessControlList = new boolean[] { false, false, false, false, false, false, false, false, false };
    
    public String getEditType() {
        return editType;
    }

    public Object getOldValues() {
        return oldValues;
    }

    public String getFolderIdx() {
        return folderIdx;
    }

    public boolean[] getAccessControlList() {
        return accessControlList;
    }

    public void setEditType(String editType) {
        this.editType = editType;
    }

    public void setFolderIdx(String folderIdx) {
        this.folderIdx = folderIdx;
    }

    public void setOldValues(Object oldValues) {
        this.oldValues = oldValues;
    }

    public void setAccessControlList(boolean[] accessControlList) {
        this.accessControlList = accessControlList;
    }

    public void otherReset(ActionMapping mapping, HttpServletRequest request) {
    }

    public void otherValidate(ActionErrors errors) {
    }

    public void setCreateUser(String createUser) {
    }

    public void setUpdateUser(String updateUser) {
    }

    protected void setRowToAddTs(Object rowToAdd) throws Exception {
        if (this.getChildTs() != null) PropertyUtils.setSimpleProperty(rowToAdd, "ts", this.getChildTs()[currIdx]);
        if (this.getChildTsNames() != null) PropertyUtils.setSimpleProperty(rowToAdd, "tsName", this.getChildTsNames()[currIdx]);
    }

}
